home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1998 June / SGI Freeware 1998 June.iso / dist / fw_ATxgopher.idb / usr / freeware / src / xgopher.1.3 / R6patch.z / R6patch
Internet Message Format  |  1998-01-21  |  5KB

  1. From @cannon.ecf.toronto.edu:steve@ecf.toronto.edu Thu May 12 16:05:13 1994
  2. Received: from cannon.ecf.toronto.edu by vidda.cso.uiuc.edu (AIX 3.2/UCB 5.64/4.03)
  3.           id AA13150; Thu, 12 May 1994 16:05:11 -0500
  4. Received: by cannon.ecf.toronto.edu id <13497>; Thu, 12 May 1994 17:04:03 -0400
  5. Newsgroups: comp.infosystems.gopher,comp.windows.x.apps,comp.windows.x
  6. Organization: University of Toronto, Engineering Computing Facility
  7. From: Steve Kotsopoulos <steve@ecf.toronto.edu>
  8. To: tuchman@vidda.cso.uiuc.edu
  9. Subject: patch to build xgopher under X11R6
  10. Message-Id: <94May12.170403edt.13497@cannon.ecf.toronto.edu>
  11. Date:     Thu, 12 May 1994 17:03:50 -0400
  12. Status: RO
  13.  
  14. I could not build xgopher-1.3.2 under X11R6 because the file KeyWSink.c
  15. was giving me compiler errors. I contacted the author, Allan Tuchman
  16. <tuchman@vidda.cso.uiuc.edu>. He told me KeyWSink.c is a superclass of
  17. the Athena Text Sink widget, and is dependent on the superclass's
  18. data. He also suggested I try disabling the widget, since it is only
  19. used to highlight the index search words in a text display.
  20.  
  21. The following patch changes 2 files (Imakefile and text.c) so that
  22. xgopher can compile under X11R6.
  23.  
  24. To apply the patch, cd to your xgopher1.3 source, and run patch < this-file
  25.  
  26. ====================== cut here ================================
  27.  
  28. *** orig/Imakefile    Mon Jun  7 14:39:13 1993
  29. --- Imakefile    Thu May 12 16:41:16 1994
  30. ***************
  31. *** 36,41 ****
  32. --- 36,49 ----
  33.    **    $(HELP_FILE) is path to help file; usually /usr/lib/X11/Xgopher **
  34.    *************************************************************************/
  35.   
  36. + #if ProjectX < 6
  37. + KEYSOURCE = KeyWSink.c
  38. + KEYOBJECT = KeyWSink.o
  39. + #else
  40. + KEYSOURCE = 
  41. + KEYOBJECT =
  42. + #endif
  43.   RESOURCE_DEFINES= -DHELP_FILE=\"$(XGOPHERDIR)/xgopher.help\"
  44.           DEFINES = $(RESOURCE_DEFINES) $(LOCAL_DEFINES)
  45.   
  46. ***************
  47. *** 50,56 ****
  48.             sc_dir.c sc_index.c sc_telnet.c sc_tn3270.c \
  49.             sc_cso.c sc_image.c sc_sound.c sc_text.c sc_binary.c \
  50.             sc_extend.c \
  51. !                   KeyWSink.c
  52.   
  53.              OBJS = xgopher.o item.o itemList.o dir.o dirList.o markList.o \
  54.                     util.o misc.o net.o \
  55. --- 58,64 ----
  56.             sc_dir.c sc_index.c sc_telnet.c sc_tn3270.c \
  57.             sc_cso.c sc_image.c sc_sound.c sc_text.c sc_binary.c \
  58.             sc_extend.c \
  59. !           $(KEYSOURCE)
  60.   
  61.              OBJS = xgopher.o item.o itemList.o dir.o dirList.o markList.o \
  62.                     util.o misc.o net.o \
  63. ***************
  64. *** 61,67 ****
  65.             sc_dir.o sc_index.o sc_telnet.o sc_tn3270.o \
  66.             sc_cso.o sc_image.o sc_sound.o sc_text.o sc_binary.o \
  67.             sc_extend.o \
  68. !               KeyWSink.o
  69.   
  70.   ComplexProgramTarget(xgopher)
  71.   
  72. --- 69,75 ----
  73.             sc_dir.o sc_index.o sc_telnet.o sc_tn3270.o \
  74.             sc_cso.o sc_image.o sc_sound.o sc_text.o sc_binary.o \
  75.             sc_extend.o \
  76. !           $(KEYOBJECT)
  77.   
  78.   ComplexProgramTarget(xgopher)
  79.   
  80. *** orig/text.c    Mon Jun  7 14:27:54 1993
  81. --- text.c    Thu May 12 16:33:43 1994
  82. ***************
  83. *** 32,43 ****
  84.   #include <X11/Xaw/Viewport.h>
  85.   #include <X11/Shell.h>
  86.   
  87. ! #include "KeyWSink.h"
  88.   
  89.   #include "conf.h"
  90.   #include "osdep.h"
  91.   #include "appres.h"
  92. - #include "compatR4.h"
  93.   #include "xglobals.h"
  94.   #include "text.h"
  95.   #include "misc.h"
  96. --- 32,48 ----
  97.   #include <X11/Xaw/Viewport.h>
  98.   #include <X11/Shell.h>
  99.   
  100. ! #include "compatR4.h"
  101. ! #if XtSpecificationRelease > 5
  102. ! #define XGOPHER_X11R6        /* KeySink widget won't compile under R6 yet */
  103. ! #else
  104. ! #include "KeyWSink.h"        /* KeySink works fine for R4 & R5 */
  105. ! #endif
  106.   
  107.   #include "conf.h"
  108.   #include "osdep.h"
  109.   #include "appres.h"
  110.   #include "xglobals.h"
  111.   #include "text.h"
  112.   #include "misc.h"
  113. ***************
  114. *** 477,482 ****
  115. --- 482,488 ----
  116.                       textForm, args, n);
  117.           setTextWidgetSize(tep->textDisplay, 80, 24);
  118.   
  119. + #ifndef XGOPHER_X11R6
  120.           /* add the key word sink */
  121.           {
  122.   #define            TAB_COUNT    32    /* same as in AsciiText.c */
  123. ***************
  124. *** 495,500 ****
  125. --- 501,507 ----
  126.               XtSetArg(args[n], XtNtextSink, kwSink);  n++;
  127.               XtSetValues(tep->textDisplay, args, n);
  128.           }
  129. + #endif
  130.   
  131.   
  132.       /* create DONE button */
  133. ***************
  134. *** 682,687 ****
  135. --- 689,695 ----
  136.       tep->stringValue = NULL;
  137.       saveItemInfo(&(tep->origFields), gi, title);
  138.   
  139. + #ifndef XGOPHER_X11R6
  140.       /* set keyword resource in text sink */
  141.   
  142.       n = 0;
  143. ***************
  144. *** 691,696 ****
  145. --- 699,705 ----
  146.       n = 0;
  147.       XtSetArg(args[n], XtNwordList, NULL);  n++;
  148.       XtSetValues(kwSink, args, n);
  149. + #endif
  150.   
  151.       /* set title and file name */
  152.   
  153. ***************
  154. *** 746,751 ****
  155. --- 755,761 ----
  156.       saveItemInfo(&(tep->origFields), gi, title);
  157.   
  158.   
  159. + #ifndef XGOPHER_X11R6
  160.       /* set keyword resource in text sink */
  161.   
  162.       n = 0;
  163. ***************
  164. *** 761,766 ****
  165. --- 771,777 ----
  166.           XtSetArg(args[n], XtNwordList, tep->wordList);  n++;
  167.       }
  168.       XtSetValues(kwSink, args, n);
  169. + #endif
  170.   
  171.       /* set title and file name */
  172.   
  173. ***************
  174. *** 808,813 ****
  175. --- 819,825 ----
  176.       tep->stringValue   = string;
  177.       saveItemInfo(&(tep->origFields), gi, title);
  178.   
  179. + #ifndef XGOPHER_X11R6
  180.       /* set keyword resource in text sink */
  181.   
  182.       n = 0;
  183. ***************
  184. *** 817,822 ****
  185. --- 829,835 ----
  186.       n = 0;
  187.       XtSetArg(args[n], XtNwordList, NULL);  n++;
  188.       XtSetValues(kwSink, args, n);
  189. + #endif
  190.   
  191.       /* set title and file name */
  192.   
  193.  
  194.